package com.blctek.cryptoserver.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 吴青珂
 * @Date: 2021/03/27/21:13
 * @Description:
 */
@RestController
@RequestMapping("/")
@CrossOrigin("*")
public class IndexController {
    @GetMapping("/")
    public Map<String,Object> index(){
        HashMap<String, Object> resMap = new HashMap<>();
        resMap.put("code",20000);
        resMap.put("message","这是crypto-server服务器");
        resMap.put("data",true);
        return resMap;
    }
}
